import authRequest from 'supports/requests/authRequest'
import normalRequest from "supports/requests/normalRequest"

export function freelances(data) {
  return authRequest('withdraws/xzbpay/auth',{method: 'post',data:data})
}

export function withdraws(data) {
  return authRequest('withdraws/freelances',{method: 'post',data:data})
}

export function getBankInfo(data) {
  return authRequest('bank/info',{data:data})
}

export function getBankCards() {
  return authRequest('bank/cards')
}

export function addBankCard(data) {
  return authRequest('bank/cards',{method: 'post',data:data})
}

export function getBankCardInfo(id) {
  return authRequest('bank/cards/' + id + '/show')
}

export function deleteBankCard(data) {
  return authRequest('bank/cards',{method: 'delete',data:data})
}

export function updataAlipayUserNo(data) {
  return authRequest('users',{method: 'put',data:data})
}

export function checkWithdrawState(data) {
  return authRequest('withdraws/freelances/record')
}





